<!doctype html>
[#escape x as (x)!?html]
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>${letter.title} - ${site.title} - Powered by JPROCMS</title>
  <meta name="keywords" content="信件详情">
  [#include '../includes/common_res.html'/]
</head>
<body>
[#assign shadowNav=true/]
[#include '../includes/header.html'/]
<div class="container">
  <div class="row">
      <!--左侧--->
      [#include '../includes/inc_letter_left.html'/]
      <!--右侧--->
      <div class="col-9 content-area p-5">
        <div class="my-3">
          <h5>
            <span class="badge badge-info">${letter.typeName}</span>
            ${letter.title}
          </h5>
          <div class="small text-black-50 mt-2 pb-2 border-bottom">
            <i class="ml-2 far fa-clock"></i> ${ZFormat(letter.createTime, 'yyyy-MM-dd HH:mm:ss')}
            <i class="ml-2 far fa-eye"></i> <span id="views"></span>
          </div>
          <div class="mt-2">[#noescape]${letter.letterText}[/#noescape]</div>
        </div>
        [#if letter.replyText??]
          <div class="border border-warning p-2 my-3">
            <h5 class="text-danger"><i class="fas fa-comment-dots"></i> 回复部门:${letter.replyDeptName} </h5>
            <div class="small text-muted"><i class="far fa-user"></i> 回复时间:<i class="ml-2 far fa-clock"></i> ${ZFormat(letter.replyDate, 'yyyy-MM-dd HH:mm:ss')}</div>
            <div class="my-2">[#noescape]${letter.replyText!}[/#noescape]</div>
          </div>
        [#else]
        <div class="border border-warning p-2 my-3">
          <div class="my-2"> 正在办理中 </div>
        </div>
        [/#if]
       </div>
      </div>
  </div>
</div>
[#include '../includes/footer.html'/]
<script>
  axios.get('${api}/letter/view/${letter.id?c}').then(function (response) {
    $('#views').text(response.data.data);
  });
</script>
</body>
</html>
[/#escape]
